package com.yanfei.zero.domain.user.repository;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yanfei.zero.domain.user.model.perms.CmPerms;
import com.yanfei.zero.domain.user.model.perms.CmResource;
@Mapper
public interface RolePermMapper {

	
	void insertResourcesByRoleId(CmPerms perms);
	
	void deleteByRoleId(Long roleId);
	
	List<Long> selectIdsByRoleId(Long roleId);

	List<CmResource> listAllResource(Long userID);
	
	List<CmResource>  getChildrenByParentId(Long rootId);
}
